package com.mengyu.common

import com.tencent.mmkv.MMKV

object SpUtils {

    val mmkv = MMKV.defaultMMKV()

    fun getToken():String?{
        return  getString(Contant.TOKEN)
    }


    fun getString(key:String):String?{
      return  mmkv.decodeString("key")
    }

    fun putString(key:String,value: String?){
        mmkv.encode("key",value)
    }


}